/*
 * File:   stri_simulink.h
 * Author: apleilx
 */

#ifndef _STRI_SIMULINK_H_
#define	_STRI_SIMULINK_H_

#include <stdint.h>

#ifdef	__cplusplus
extern "C" {
#endif

typedef struct 
{
	struct
	{
		int ft;
		float f_nei;
		float f_obj;
		float f_wai;
    } temp;

	struct
	{
		uint8_t b_low;
		uint8_t b_hith;
		float f_press;
		float da_qi_ya;
		char b_air_out;
		float kong_qi_bili;
		float ft_buff;
	} press;
	
    char b_temp_over;
    char b_feng_shan;
		
	struct
	{
		float main_duty_flt;
		float ext_duty_flt;
		float main_heat_duty;
		float ext_heat_duty;
		float main_heat_period;
		float ext_heat_period;
	} heat;

	
	struct 
	{
		char b_bu_shui;
		char b_pai_shui;
		char b_wt_low;
		char b_wt_high;
		float f_shui_wei;
	} water;
	
	// inner
	struct
	{
		float nei;
		float wai;
		float obj;
		float re_rong_liang_nei;
		float re_rong_liang_wai;
		float re_rong_liang_obj;
	} neng_liang;
} sim_type;
	
extern	sim_type sim_obj;
	
#ifdef	__cplusplus
}
#endif


#endif	/* _STRI_SIMULINK_H_ */

